import request from '@/utils/request'

// 查询评分-评级限制列表
export function listLimit(query) {
  return request({
    url: '/workSafetyStandardization/limit/list',
    method: 'get',
    params: query
  })
}

// 查询评分-评级限制详细
export function getLimit(gradeLimitId) {
  return request({
    url: '/workSafetyStandardization/limit/' + gradeLimitId,
    method: 'get'
  })
}

// 新增评分-评级限制
export function addLimit(data) {
  return request({
    url: '/workSafetyStandardization/limit',
    method: 'post',
    data: data
  })
}

// 修改评分-评级限制
export function updateLimit(data) {
  return request({
    url: '/workSafetyStandardization/limit',
    method: 'put',
    data: data
  })
}

// 删除评分-评级限制
export function delLimit(gradeLimitId) {
  return request({
    url: '/workSafetyStandardization/limit/' + gradeLimitId,
    method: 'delete'
  })
}
